/*
 * @Author: Kevin Zhao
 * @Date: 2021-09-09 21:51:29
 * @LastEditTime: 2021-12-11 14:19:46
 * @LastEditors: Kevin Zhao
 * @Description: 文娱课程api
 * @FilePath: \uniapp-pro\src\api\entertainment.ts
 */
import request from '../server/request'

interface CourseInfInterface {
    classInfoId: number | string // 课程id
}

/**
 * @description: 获取文娱列表
 * @param {*} params
 * @return {*}
 */
export const getCourseListAPI  = ():any => {
    return request({}, 'getClassList')
}

/**
 * @description: 获取文娱课程详情
 * @param {CourseInfInterface} params
 * @return {*}
 */
export const getCourseInfoAPI = (params: CourseInfInterface):any => {
    return request(params, 'getClassInfoInfo')
}